/**
 * @file Service_Operation.h
 * @author Glorill 1615688664@qq.com
 * @brief DR16遥控器发包等操作
 * @version 0.1
 * @date 2022-02-04
 * 
 * @copyright Copyright (c) 2022
 * 
 */

#ifndef SERVICE_OPERATION_H
#define SERVICE_OPERATION_H

/* Includes ------------------------------------------------------------------*/

#include "System_Config.h"

#ifdef __cplusplus
extern "C"
{
#endif

/* Exported macros -----------------------------------------------------------*/

/* Exported types ------------------------------------------------------------*/

enum E_CtrlMode
{
  DISABLE_CONTROL = 0,
  REMOTE_CONTROL = 1,
  KEYBOARD_CONTROL = 2,
};

/* Exported variables --------------------------------------------------------*/

extern TaskHandle_t Operation_Handle;
extern DR16_Classdef DR16;
extern E_CtrlMode CtrlMode;
extern bool GyroscopeMode;

/* Exported function declarations --------------------------------------------*/

void DR16_Uart_Init(void);
void Service_Operation_Init(void);

#ifdef __cplusplus
}
#endif

#endif

/************************ COPYRIGHT(C) USTC-ROBOWALKER **************************/
